package com.dofast.bt.bean;

import com.dofast.bt.base.BaseApplication;

import org.xutils.db.annotation.Column;
import org.xutils.db.annotation.Table;
import org.xutils.ex.DbException;

/**
 * Created by Administrator on 2016/12/22 0022.
 * 关注店铺
 */
@Table(name = "attention")
public class AttentionBean {
    @Column(name = "aId",isId = true,autoGen = true, property = "NOT NULL")
    private int aId;
    @Column(name = "shopId")
    private int shopId;

    public int getaId() {
        return aId;
    }

    public void setaId(int aId) {
        this.aId = aId;
    }

    public int getShopId() {
        return shopId;
    }

    public void setShopId(int shopId) {
        this.shopId = shopId;
    }

    public AttentionBean(){

    }
    public ShopBean getShop() {
        try {
            return BaseApplication.getDbManager().findById(ShopBean.class,this.shopId);
        } catch (DbException e) {
            return null;
        }
    }
}
